package com.niuniu.rushdorm.service.impl;

import com.niuniu.rushdorm.mapper.AuthMapper;
import com.niuniu.rushdorm.pojo.entity.Credential;
import com.niuniu.rushdorm.service.AuthService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author rambo
 * 2022/11/25
 */
@Service
public class AuthServiceImpl implements AuthService {
    @Autowired
    AuthMapper authMapper;
    @Override
    public int UpdatePsw(String psw, long uid) {
        return authMapper.UpdatePwd(psw,uid);
    }

    @Override
    public Credential GetAuth(long uid) {
        return authMapper.GetAuth(uid);
    }
}
